luci-mod-network: properly reflect config state in sysfs tristates
authorJo-Philipp Wich <[email protected]>
Fri, 8 Dec 2023 11:38:51 +0000 (12:38 +0100)
committerJo-Philipp Wich <[email protected]>
Fri, 8 Dec 2023 11:41:33 +0000 (12:41 +0100)
commitd6d4dcf240df721e85f91f4e45593f407d565c85
tree427f4529a489e0e725a26b8ea7b59ea7886c312f
parent9b695f9bea19e0a42936fee6e348d13d0910b3a0
luci-mod-network: properly reflect config state in sysfs tristates

When a boolean sysfs option is forcibly set to `0` or `1` in uci, then make
sure to properly reflect that choice state when rendering the widget.

Right now the dropdown incorrectly reverted to "automatic" after saving but
not applying the changes.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 4b6b00927b4a1076ed8bf23f3a0327a335ebece5)
modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js